package com.homework.ch07.zoo;

public class Bird extends Animal{
    private double WingSpan;

    public Bird(String name,double wingSpan) {
        super(name);
        WingSpan = wingSpan;
    }

    @Override
    public void makeSound() {
        System.out.println("鸟发出啾啾叫声");
    }

    @Override
    public void move() {
        System.out.println("鸟在飞翔");
    }

    public double getWingSpan() {
        return WingSpan;
    }
}
